const Koa = require("koa");
const KoaRouter = require("koa-router");
const routerreg = require("./router");
const router = new KoaRouter();
const app = new Koa();
const cors = require("koa2-cors");

app.use(cors());

routerreg(router);
app.use(router.routes());

app.listen(3003);
